package org.springblade.modules.admin.utils;

import java.util.Comparator;
import java.util.Date;

/**
 * @Description 排期计划日期比较器
 * @Author ysq
 * @Date 2022/3/12
 **/
public class PlanDateComparator implements Comparator<Date> {

	@Override
	public int compare(Date o1, Date o2) {
		if (o1.getTime() > o2.getTime()) {
			return 1;
		} else if (o1.getTime() < o2.getTime()) {
			return -1;
		} else {
			return 0;
		}
	}
}
